import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import store from './store'

import uView from 'uview-ui'
import '@/static/style/iconfont.css'
Vue.use(uView)

import url from '@/common/urlencode.js';
Vue.prototype.$url = url;
import request from '@/common/request.js';
Vue.prototype.$request = request;
import * as api from '@/common/api.js';
Vue.prototype.$api = api;
Vue.prototype.$store = store;

import navbar from '@/components/navbar';
Vue.component('navbar', navbar);
import noData from '@/components/noData';
Vue.component('noData', noData);

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif